//
//  GameView.h
//  MTDBFROMJSON
//
//  Created by kingPC on 13-9-1.
//  Copyright (c) 2013年 kingPC. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "MButton.h"

@class Question,ViewController;

@interface GameView : UIView<AVAudioPlayerDelegate>{
    NSUInteger currentTitlecount;
    NSUInteger titlecount;
    
    
    CGRect rect1;
    CGRect rect2;
    CGRect rect3;
    CGRect rect4;
}
@property (retain, nonatomic) IBOutlet UILabel *question;
@property (retain, nonatomic) IBOutlet MButton *answer1;
@property (retain, nonatomic) IBOutlet MButton *answer2;
@property (retain, nonatomic) IBOutlet MButton *answer3;
@property (retain, nonatomic) IBOutlet MButton *answer4;

@property (retain, nonatomic) IBOutlet UIButton *fiftyfiftyBtn;
@property (retain, nonatomic) Question *qu;
@property (retain, nonatomic) ViewController *viewcontroller;

@property (retain, nonatomic) IBOutlet UIButton *sureBtn;
@property (nonatomic,retain) AVAudioPlayer *audioPlayer;

-(id)initWithQuestion:(Question*)q;
- (IBAction)AnswerBtnPress:(id)sender;
-(IBAction)changeQuestion;
- (IBAction)SureBtnPress:(id)sender;
- (IBAction)FiftyFifty:(id)sender;
-(void)backGroundMusicRUN;
- (IBAction)re:(id)sender;
-(void)viewLoadinit;
@end
